package Variables;

import assignment1.Demand;
import assignment1.Link;
import assignment1.Z;

public class Variables {
	
	
	
	
	protected Link[] links = new Link[] {new Link(),new Link(),new Link(),new Link(),new Link(),new Link(),new Link() };
	
	int[] r11= new int[]{1};     int[] r21= new int[]{3,6,4}; 	 int[] r31= new int[]{3,6,7,5,2}; 	
	int[] r12= new int[]{1,2};   int[] r22= new int[]{3,6,7,5};	 int[] r32= new int[]{3,6,4,2};		
	int[] r13= new int[]{3};     int[] r23= new int[]{1,4,6};	 int[] r33= new int[]{1,2,5,7,6};	
	int[] r14= new int[]{3,6};   int[] r24= new int[]{1,4};		 int[] r34= new int[]{1,2,5,7};		
	int[] r15= new int[]{1,2,5}; int[] r25= new int[]{3,6,7};	 int[] r35= new int[]{1,4,7};		int[] r45= new int[]{3,6,4,2,5};
	int[] r16= new int[]{2};	 int[] r26= new int[]{4,7,5};	 int[] r36= new int[]{1,3,6,7,5};	
	int[] r17= new int[]{4,6};	 int[] r27= new int[]{1,3};		 int[] r37= new int[]{2,5,7,6};		
	int[] r18= new int[]{4};	 int[] r28= new int[]{1,3,6};	 int[] r38= new int[]{2,5,7};		
	int[] r19= new int[]{2,5};	 int[] r29= new int[]{4,7};		 int[] r39= new int[]{1,3,6,7};		
	int[] r110=new int[]{5,7,6}; int[] r210=new int[]{2,4,6};	 int[] r310=new int[]{2,1,3};		
	int[] r111=new int[]{2,4};   int[] r211=new int[]{5,7};	 	 int[] r311=new int[]{2,1,3,6};		
	int[] r112=new int[]{5};     int[] r212=new int[]{2,4,7};	 int[] r312=new int[]{2,1,3,6,7};	
	int[] r113=new int[]{6};     int[] r213=new int[]{3,1,4};	 int[] r313=new int[]{3,1,2,5,7};	
	int[] r114=new int[]{6,7};   int[] r214=new int[]{3,1,2,5};  int[] r314=new int[]{3,1,4,7};		int[] r414= new int[]{6,4,2,5};
	int[] r115=new int[]{7};     int[] r215=new int[]{4,2,5};	 int[] r315=new int[]{6,3,1,2,5};	
	
	
	
	// initially the Demand are full, the load is null and the first link to be loaded is the first (the direct link)
	Demand d1= new Demand(150);
	Demand d2= new Demand(85);
	Demand d3= new Demand(200);
	Demand d4= new Demand(120);
	Demand d5= new Demand(75,4);
	Demand d6= new Demand(90);
	Demand d7= new Demand(100);
	Demand d8= new Demand(70);
	Demand d9= new Demand(130);
	Demand d10= new Demand(250);
	Demand d11= new Demand(100);
	Demand d12= new Demand(85);
	Demand d13= new Demand(175);
	Demand d14= new Demand(110,4);
	Demand d15= new Demand(125,0);
	
	protected Demand[] demands = {d1,d2,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15};
	
	Z z11= new Z(r11);			 Z z21= new Z(r21);				 Z z31= new Z(r31); 				
	Z z12= new Z(r12);			 Z z22= new Z(r22);				 Z z32= new Z(r32); 				
	Z z13= new Z(r13);			 Z z23= new Z(r23);				 Z z33= new Z(r33); 				
	Z z14= new Z(r14);			 Z z24= new Z(r24);				 Z z34= new Z(r34); 				
	Z z15= new Z(r15);			 Z z25= new Z(r25);				 Z z35= new Z(r35); 				Z z45= new Z(r45);
	Z z16= new Z(r16);			 Z z26= new Z(r26);				 Z z36= new Z(r36); 				
	Z z17= new Z(r17);			 Z z27= new Z(r27);				 Z z37= new Z(r37); 				
	Z z18= new Z(r18);			 Z z28= new Z(r28);				 Z z38= new Z(r38); 				
	Z z19= new Z(r19);			 Z z29= new Z(r29);				 Z z39= new Z(r39); 				
	Z z110= new Z(r110);		 Z z210= new Z(r210);			 Z z310= new Z(r310); 				
	Z z111= new Z(r111);		 Z z211= new Z(r211);			 Z z311= new Z(r311); 				
	Z z112= new Z(r112);		 Z z212= new Z(r212);			 Z z312= new Z(r312); 				
	Z z113= new Z(r113);		 Z z213= new Z(r213);			 Z z313= new Z(r313); 				
	Z z114= new Z(r114);		 Z z214= new Z(r214);			 Z z314= new Z(r314); 				Z z414= new Z(r414);
	Z z115= new Z(r115);		 Z z215= new Z(r215);			 Z z315= new Z(r315); 				
	
	protected Z[][] traffic ={
			{z11,z12,z13,z14,z15,z16,z17,z18,z19,z110,z111,z112,z113,z114,z115},
			{z21,z22,z23,z24,z25,z26,z27,z28,z29,z210,z211,z212,z213,z214,z215},
			{z31,z32,z33,z34,z35,z36,z37,z38,z39,z310,z311,z312,z313,z314,z315},
			{null, null,null,null,z45,null,null,null,null,null,null,null,null,z414,null}
					};
}
